package com.zzld.modules.autoinn.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.github.pagehelper.PageInfo;
import com.zzld.core.service.IBaseService;
import com.zzld.modules.autoinn.entity.Store;
import com.zzld.modules.common.dto.TreeGrid;


public interface IStoreService extends IBaseService<Store> {

	
	/**
	 * 根据距离获取分页
	 * @param map
	 * @param PageNum
	 * @param PageSize
	 * @return
	 */
	public PageInfo<Store> selectOrderDistance(Map<String,Object> map,int PageNum,int PageSize);
	
	public PageInfo<Store> selectOrderSold(Map<String,Object> map,int PageNum,int PageSize);
	
	public PageInfo<Store> selectOrderprice(Map<String,Object> map,int PageNum,int PageSize);
	
	public PageInfo<Store> selectOrderfen(Map<String,Object> map,int PageNum,int PageSize);

	/**
	 * 分页查询
	 * 
	 * @param map
	 * @param PageNum
	 * @param PageSize
	 * @return
	 */
	public PageInfo selectByPage(Map map, int PageNum, int PageSize);
	
	public Integer selectprocount(String id);
	/**
	 * 删除操作
	 * 
	 * @param id
	 * @return
	 */
	public int deletebykey(String id) ;

	/**
	 * 修改/添加操作
	 * 
	 * @param store
	 * @param i
	 * @return
	 */
	public int upOraddstore(Store store, int i);

	/**
	 * 根据id查询一条数据
	 * 
	 * @param id
	 * @return
	 */ 
	public HashMap<String, Object> selectbykey(String id);

	public HashMap<String, Object> selecthoukey(String id);

	public HashMap<String, Object> selectkey(String id);

	/**
	 * 获取树形网格
	 * 
	 * @return
	 */
	public List<TreeGrid> treeGrid();

	public List<Store> selectbyprice(String id);
	
	public PageInfo<Store> selectbybyfen(Map<String,Object> map,int PageNum,int PageSize);
	
	public PageInfo<Store> selectbybyjuli(Map<String,Object> map,int PageNum,int PageSize);
}
